package org.android.bbox.utils;

import android.content.ContentValues;
import android.database.Cursor;

//TODO check still util?
public class CursorUtils
{
	public static void valuesFillString(String key, Cursor c, ContentValues values)
	{
		values.put(key, c.getString(c.getColumnIndex(key)));
	}

	public static void valuesFillInt(String key, Cursor c, ContentValues values)
	{
		values.put(key, c.getInt(c.getColumnIndex(key)));
	}

	public static void valuesFillBoolean(String key, Cursor c, ContentValues values)
	{
		values.put(key, (c.getInt(c.getColumnIndex(key)) > 0));
	}
}
